#!/usr/bin/env python
# -*- coding: UTF-8 -*-
__author__ = 'gtlions'
import os
import chardet


dir ='/Users/gtlions/gtlions/01Personal/音乐'
for line in os.walk(dir):
    str = line[0]
    codedetect = chardet.detect(str)["encoding"]
    str = unicode(str, codedetect)
    print str.encode('utf-8')